import java.util.Scanner;

public class I1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数字 n:");
        int n = sc.nextByte();
        System.out.println("请输入一个字符串：");
        String a = sc.next();
        char b = 'l';
        String str = String.valueOf(n);
        if (n >=0 && n <10){
            for (int j = 0; j < n; j++) {
                for (int i = 0; i < a.length(); i++) {
                    char c = a.charAt(i);
                    if (c == b) {
                        System.out.print(str);
                    } else {
                        System.out.print(c);
                    }
                }
                System.out.println();
            }
        } else {
            System.out.println("n的值超出范围");
        }
    }
}

